-- GENERATED SPELL FOR [Ruul Onestone] --


function spell0_2602(pUnit, Event) --@Bloodlust,n/a--
pUnit:FullCastSpellOnTarget(6742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2602', 30344, 1)
end

function spell1_2602(pUnit, Event) --@Lightning Bolt,n/a--
pUnit:FullCastSpellOnTarget(9532,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_2602', 3000, 1)
end

function Sorts_2602(pUnit, Event)
local choix_sorts_2602 = math.random(0, 1)
if choix_sorts_2602 == 0 then
pUnit:RegisterEvent('spell0_2602', 1, 1)
end
if choix_sorts_2602 == 1 then
pUnit:RegisterEvent('spell1_2602', 1, 1)
end
end

function mob2602_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_2602', math.random(1500, 3000), 1)
end

function mob2602_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2602_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob2602_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(2602, 1, 'mob2602_Action')
RegisterUnitEvent(2602, 2, 'mob2602_Leave')
RegisterUnitEvent(2602, 3, 'mob2602_Kill')
RegisterUnitEvent(2602, 4, 'mob2602_Die')
